package com.azt.api.pojo;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.azt.pojo.BaseEntity;

@Table(name = "azt_content")
public class Content extends BaseEntity {
	

	/*标题*/
	@Column(name = "title")
	private java.lang.String title;

	/*副标题*/
	@Column(name="sub_title")
	private java.lang.String subTitle;
	
	/*内容*/
	@Column(name = "content")
	private java.lang.String content;
	

	/*标题图*/
	@Column(name = "title_img")
	private java.lang.String titleImg;

	/*是否有标题图（0没有，1有）*/
	@Column(name = "if_img")
	private java.lang.Integer ifImg = 0;
	
	/*是否推荐（0没有，1有）*/
	@Column(name = "if_recommend")
	private java.lang.Integer ifRecommend;

	/*所属栏目*/
	@Transient
	private Channel channel;
	
	@Column(name = "channel_id")
	private java.lang.Integer channelId;

	/*排序号*/
	@Column(name = "seq")
	private java.lang.Integer seq;

	/*文章的作者*/
	@Column(name = "editor")
	private java.lang.String editor;

	/*浏览次数*/
	@Column(name = "hit")
	private java.lang.Integer hit = 0;
	
	/*是否可用   1可用  0不可用*/
	@Column(name = "if_useable")
	private java.lang.Integer ifUseable = 1;
	
	/*有帮助*/
	@Column(name="helpful")
	private Integer helpful;
	
	/*没帮助*/
	@Column(name="helpless")
	private Integer helpless;
	
	
	
	public Integer getHelpful() {
		return helpful;
	}

	public void setHelpful(Integer helpful) {
		this.helpful = helpful;
	}

	public Integer getHelpless() {
		return helpless;
	}

	public void setHelpless(Integer helpless) {
		this.helpless = helpless;
	}

	public java.lang.String getTitle() {
		return this.title;
	}
	
	public void setTitle(java.lang.String value) {
		this.title = value;
	}
	
	
	public java.lang.String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(java.lang.String subTitle) {
		this.subTitle = subTitle;
	}

	
	public java.lang.String getContent() {
		return this.content;
	}
	
	public void setContent(java.lang.String value) {
		this.content = value;
	}

	
	public java.lang.String getTitleImg() {
		return this.titleImg;
	}
	
	public void setTitleImg(java.lang.String value) {
		this.titleImg = value;
	}

	
	public java.lang.Integer getIfImg() {
		return this.ifImg;
	}
	
	public void setIfImg(java.lang.Integer value) {
		this.ifImg = value;
	}
	
	
	public java.lang.Integer getIfRecommend() {
		return ifRecommend;
	}

	public void setIfRecommend(java.lang.Integer ifRecommend) {
		this.ifRecommend = ifRecommend;
	}

//	@ManyToOne(cascade = CascadeType.REFRESH , fetch = FetchType.LAZY)
//	@JoinColumn(name = "channel_id")
	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}
	
	public java.lang.Integer getChannelId() {
		return channelId;
	}

	public void setChannelId(java.lang.Integer channelId) {
		this.channelId = channelId;
	}

	public Integer getSeq() {
		return this.seq;
	}
	
	
	public void setSeq(Integer value) {
		this.seq = value;
	}

	
	public java.lang.String getEditor() {
		return this.editor;
	}
	
	public void setEditor(java.lang.String value) {
		this.editor = value;
	}

	
	public java.lang.Integer getHit() {
		return this.hit;
	}
	
	public void setHit(java.lang.Integer value) {
		this.hit = value;
	}

	
	public java.lang.Integer getIfUseable() {
		return ifUseable;
	}

	public void setIfUseable(java.lang.Integer ifUseable) {
		this.ifUseable = ifUseable;
	}
	

}

